package com.robooot.business_counter.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Component
public class IBizFactory {
    @Autowired
    Map<String, IBizService> ibzInterfaceMap = new ConcurrentHashMap<>();

    public IBizService get(String component) {
        return ibzInterfaceMap.get(component);
    }
}
